/**
 * Copyright 2016 Yonyou Corporation Ltd. All Rights Reserved.
 * This software is published under the terms of the Yonyou Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 *
 * @Project Name : dms.web
 * @File name : LoginInfoDto.java
 * @Author : zhangxc
 * @Date : 2016年6月30日
 * <p>
 * ----------------------------------------------------------------------------------
 * Date       Who       Version     Comments
 * 1. 2016年6月30日    zhangxc    1.0
 * <p>
 * <p>
 * <p>
 * <p>
 * ----------------------------------------------------------------------------------
 */

package com.yonyou.cyxdms.sysAuth.service.dto.authorization;

import com.yonyou.cyxdms.framework.constants.FrameworkDictCodeConstants;

import java.util.Locale;

/**
 * 记录登录的相关信息
 *
 * @author zhangxc
 * @date 2016年6月30日
 */
public class CYXLoginInfoDto {

    private String userAccount;  //用户登录账号
    private Long empId;                //Tm_emp ID
    private Long userId;    //用户ID
    private Integer loginWay = FrameworkDictCodeConstants.LOGIN_WAY_PC;            //登录方式：APP、PC

    private String appId;          //所属公司代码
    private Long dealerId;              //所属 经销商ID

    private String dealerCode;        //经销商代码

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    private Integer orgId;

    // 数据来源渠道
    private Integer dataSourceChannel;

    private Locale locale;

    private String uuid;
    
    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public Long getEmpId() {
        return empId;
    }

    public void setEmpId(Long empId) {
        this.empId = empId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getLoginWay() {
        return loginWay;
    }

    public void setLoginWay(Integer loginWay) {
        this.loginWay = loginWay;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Long getDealerId() {
        return dealerId;
    }

    public void setDealerId(Long dealerId) {
        this.dealerId = dealerId;
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }

    public Integer getDataSourceChannel() {
        return dataSourceChannel;
    }

    public void setDataSourceChannel(Integer dataSourceChannel) {
        this.dataSourceChannel = dataSourceChannel;
    }

    public Locale getLocale() {
        return locale;
    }

    public void setLocale(Locale locale) {
        this.locale = locale;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    public String toString() {
        return "LoginInfoDto{" +
                "userAccount='" + userAccount + '\'' +
                ", empId=" + empId +
                ", userId=" + userId +
                ", loginWay=" + loginWay +
                ", appId='" + appId + '\'' +
                ", dealerId=" + dealerId +
                ", dealerCode='" + dealerCode + '\'' +
                ", orgId=" + orgId +
                ", dataSourceChannel=" + dataSourceChannel +
                ", locale=" + locale +
                '}';
    }
}
